package com.eonmind.common.provider.entity.vip;

import com.eonmind.common.contract.enums.DelEnum;
import com.mongoplus.annotation.ID;
import com.mongoplus.annotation.collection.CollectionName;
import com.mongoplus.annotation.index.MongoIndex;
import com.mongoplus.enums.IdTypeEnum;
import lombok.*;
import lombok.experimental.FieldNameConstants;

/**
 * 该实体已废弃
 */

@Data
@CollectionName("vipManagement")
@FieldNameConstants
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
public class VipManagement {

    // 会员管理ID
    @ID(type = IdTypeEnum.AUTO)
    private Long id;

    // 用户ID
    private Long userId;

    // 套餐ID
    private Long packageId;

    // 积分额度
    private Integer integral;

    // 会员有效时间截止日期
    private Long validityPeriod;

    // 创建时间
    private Long createTime;

    // 更新时间
    private Long updateTime;

    // 是否删除
    private Integer del = DelEnum.UN_DEL.getCode();

}
